<?php
/**
 * 用户登录模型
 */
class LoginModel extends AdminModel
{
    public function __construct()
    {
        parent::__construct();

    }

   /**
    * 获取admin密码
    * @return [type]     [description]
    */
    public function getAdminPassword()
    {
        $sql = 'select adminpass from ' . T('config') . ' limit 1';
        return $this->mysql->getOne($sql);
    }

}